package com.eighth.decorator;

/**
 * Author Name: Justice
 * Project Name: Stage11
 * File Name: AbstractDecorator
 * Package Name: com.eighth.decorator
 * Date: 2020-03-27 13:21
 * Copyright (c) 2020,All Rights Reserved.
 * 装饰父类 注入煎饼类对象
 */


public class AbstractDecorator extends ABattercake {
    private ABattercake aBattercake;

    AbstractDecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    @Override
    protected String getDesc() {
        return this.aBattercake.getDesc();
    }

    @Override
    protected int cost() {
        return this.aBattercake.cost();
    }
}
